Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

feat(express-engine): add ModuleMapLoaderModule to the app server imports during ng-add#1130

Merged
vikerman merged 2 commits intomasterfrom
adam/module-map
Mar 7, 2019
Merged

feat(express-engine): add ModuleMapLoaderModule to the app server imports during ng-add#1130
vikerman merged 2 commits intomasterfrom
adam/module-map

Conversation

@CaerusKaru
Copy link
Copy Markdown
Member

Fixes #1129

@CaerusKaru CaerusKaru added action: review area: express-engine target: minor target: minor This PR is targeted for the next minor release labels Feb 19, 2019
@CaerusKaru CaerusKaru added this to the 6.0 milestone Feb 19, 2019
export function findAppServerModulePath(host: Tree, mainPath: string): string {
const exportDeclaration = findAppServerModuleExport(host, mainPath);
if (!exportDeclaration) {
throw new SchematicsException('Export declaration not found');
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's not clear to me from the error message what 'Export declaration' is referring to. Maybe specify Internal Error if the error is not actually actionable by the user?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's referring to the export {DECLARATION} block. Do you have a suggestion to make that more apparent?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would have the error message indicate what sort of export declaration it was expecting - Like "Exported AppServer Module not found" or something like that instead of a generic statement like the current one.

Comment thread modules/express-engine/schematics/install/index.ts
@vikerman vikerman merged commit e776dfc into master Mar 7, 2019
@angular-automatic-lock-bot
Copy link
Copy Markdown

This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.

Read more about our automatic conversation locking policy.

This action has been performed automatically by a bot.

@angular-automatic-lock-bot angular-automatic-lock-bot Bot locked and limited conversation to collaborators Sep 6, 2019
@kyliau kyliau deleted the adam/module-map branch March 28, 2020 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

action: review area: express-engine target: minor target: minor This PR is targeted for the next minor release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ng add @nguniversal/express-engine should add ModuleMapLoaderModule to App server module

3 participants